﻿@model WaiGaoQiaoWeb.Models.WarehouseSummaryNewVM
@{
    ViewBag.Title = "WarehouseSummaryNewIndex";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section Head
{
    <script type="text/javascript">
        $(document).ready(function () {
            $("#btnExportm").click(function () {
                var yax = $("#canteenid :selected").val();
                var yaxname = $("#canteenid :selected").text();
                var yy = $("#canteenyy :selected").text();
                var mm = $("#canteenmm :selected").val();
                var strulr = "StaffCanteenWarehouseOut?yy=" + yy + "&mm=" + mm + "&yax=" + yax + "&yaxname=" + yaxname;
                var subwin = window.open(strulr, "", "menubar=no,toolbar=no,status=no,resizable=no,scrollbars=yes");
                subwin.moveTo(0, 0);
                subwin.resizeTo(window.screen.availWidth, window.screen.availHeight);
                return false;
            });
            $("#btnExportm1").click(function () {
                var yax = $("#canteenid1 :selected").val();
                var yaxname = $("#canteenid1 :selected").text();
                var yy = $("#canteenyy1 :selected").text();
                var mm = $("#canteenmm1 :selected").val();
                var strulr = "StaffCanteenWarehouseOut1?yy=" + yy + "&mm=" + mm + "&yax=" + yax + "&yaxname=" + yaxname;
                var subwin = window.open(strulr, "", "menubar=no,toolbar=no,status=no,resizable=no,scrollbars=yes");
                subwin.moveTo(0, 0);
                subwin.resizeTo(window.screen.availWidth, window.screen.availHeight);
                return false;
            });
            $("#btnExportm2").click(function () {
                var shitang = $("#canteenid2 :selected").val();
                var shitangname = $("#canteenid2 :selected").text();
                var yy = $("#canteenyy2 :selected").text();
                var mm = $("#canteenmm2 :selected").val();
                var leixing = $("#typename :selected").val();
                var strulr = "StaffCanteenWarehouseOut2?yy=" + yy + "&mm=" + mm + "&shitang=" + shitang + "&shitangname=" + shitangname + "&leixing=" + leixing;
                var subwin = window.open(strulr, "", "menubar=no,toolbar=no,status=no,resizable=no,scrollbars=yes");
                subwin.moveTo(0, 0);
                subwin.resizeTo(window.screen.availWidth, window.screen.availHeight);
                return false;
            });
            $("#btnExportm3").click(function () {
                var yy = $("#canteenyy3 :selected").text();
                var mm = $("#canteenmm3 :selected").val();
                var strulr = "StaffCanteenWarehouseOut3?yy=" + yy + "&mm=" + mm;
                var subwin = window.open(strulr, "", "menubar=no,toolbar=no,status=no,resizable=no,scrollbars=yes");
                subwin.moveTo(0, 0);
                subwin.resizeTo(window.screen.availWidth, window.screen.availHeight);
                return false;
            });
        });
    </script>
}
<div id="container">
    <div id="mainContent">
        <div id="title" class="title">
            食堂仓库汇总</div>
        <div id="findDiv">
            <table>
                <tr>
                    <td>
                        食堂：
                    </td>
                    <td>
                        @Html.DropDownList("canteenid",
                                             ViewData["canteen"] as IEnumerable<SelectListItem>,
                                        new { @style = "width:100px; height:22px; font-size:13px;" })
                    </td>
                    <td>
                        年份：
                    </td>
                    <td>@Html.DropDownList("canteenyy",
                                   ViewData["yy"] as IEnumerable<SelectListItem>,
                                   new { @style = "width:90px; height:22px; font-size:13px;" })
                    </td>
                    <td>
                        月份：
                    </td>
                    <td>@Html.DropDownList("canteenmm",
                                   ViewData["mm"] as IEnumerable<SelectListItem>,
                                        new { @style = "width:90px; height:22px; font-size:13px;" })
                    </td>
                    <td>
                        <a id="btnExportm" class="button" href="javascript:void(0);"><span>导 出</span></a>
                    </td>
                </tr>
            </table>
            <table>
                <tr style="width: 840px">
                    <td align="center" style="">
                    </td>
                </tr>
            </table>
        </div>
        <div id="title1" class="title">
            盈亏报表</div>
        <div id="findDiv1">
            <table>
                <tr>
                    <td>
                        班次：
                    </td>
                    <td>@Html.DropDownList("canteenid1",
                                             ViewData["canteen1"] as IEnumerable<SelectListItem>,
                                        new { @style = "width:158px; height:22px; font-size:13px;" })
                    </td>
                    <td>
                        年份：
                    </td>
                    <td>@Html.DropDownList("canteenyy1",
                                   ViewData["yy"] as IEnumerable<SelectListItem>,
                                   new { @style = "width:108px; height:22px; font-size:13px;" })
                    </td>
                    <td>
                        月份：
                    </td>
                    <td>@Html.DropDownList("canteenmm1",
                                   ViewData["mm"] as IEnumerable<SelectListItem>,
                                        new { @style = "width:108px; height:22px; font-size:13px;" })
                    </td>
                    <td>
                        <a id="btnExportm1" class="button" href="javascript:void(0);"><span>导 出</span></a>
                    </td>
                </tr>
            </table>
        </div>
        <div id="title2" class="title">
            食堂进出库明细表</div>
        <div id="findDiv2">
            <table>
                <tr>
                    <td>
                        食堂：
                    </td>
                    <td>@Html.DropDownList("canteenid2",
                                        ViewData["GetYaxNode"] as IEnumerable<SelectListItem>,
                                        new { @style = "width:158px; height:22px; font-size:13px;" })
                    </td>
                    <td>
                        年份：
                    </td>
                    <td>@Html.DropDownList("canteenyy2",
                                   ViewData["yy"] as IEnumerable<SelectListItem>,
                                   new { @style = "width:108px; height:22px; font-size:13px;" })
                    </td>
                    <td>
                        月份：
                    </td>
                    <td>@Html.DropDownList("canteenmm2",
                                   ViewData["mm"] as IEnumerable<SelectListItem>,
                                        new { @style = "width:108px; height:22px; font-size:13px;" })
                    </td>
                    <td>
                        类型：@Html.DropDownList("typename",
                                               ViewData["typename"] as IEnumerable<SelectListItem>,
                                        new { @style = "width:108px; height:22px; font-size:13px;" })
                    </td>
                    <td>
                        <a id="btnExportm2" class="button" href="javascript:void(0);"><span>导 出</span></a>
                    </td>
                </tr>
            </table>
        </div>
        <div id="title2" class="title">
            总盈亏</div>
        <div id="findDiv2">
            <table>
                <tr>
                    <td>
                        年份：
                    </td>
                    <td>@Html.DropDownList("canteenyy3",
                                   ViewData["yy"] as IEnumerable<SelectListItem>,
                                   new { @style = "width:108px; height:22px; font-size:13px;" })
                    </td>
                    <td>
                        月份：
                    </td>
                    <td>@Html.DropDownList("canteenmm3",
                                   ViewData["mm"] as IEnumerable<SelectListItem>,
                                        new { @style = "width:108px; height:22px; font-size:13px;" })
                    </td>
                    <td>
                        <a id="btnExportm3" class="button" href="javascript:void(0);"><span>导 出</span></a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
